﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="reporteContrato.aspx.cs" Inherits="WebContratos.reporteContrato" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Página sin título</title>
    
    	
    <script type="text/javascript">
    var basePath = '';
    var pathToImages = 'images/';
   
	
  </script>




       <style type="text/css" media="all">
   @import "css/highlight/doc_no_left.css";
   </style>
   
   
   <style type="text/css" >
	 .btnCrm
	 { width:84px; height:22px; 
	   border-left:#6699CC thin solid; border-bottom:#4167B0 thin solid;
	   border-right:#6699CC thin solid; border-top:#4167B0 thin solid; 
	       font-size: 11px;
           background-image: -webkit-gradient(linear,left bottom,left top,color-stop(0, #D0E5F7),color-stop(1, #B9D5EF));
       }
	 
	 #button:active { 
	position:relative; 
	top:1px /* or more */ 
	} 

   </style>

    <style type="text/css">
	
	
	
.style1 {
	font-weight: bold;
	font-size:11px;     color: #000000;
        }

    .style6{ 
font-size:11px; font:Tahoma;
}

.cajaTexto
{
font-size:11px; font:Tahoma;
border-left:#6699CC 1px solid; border-bottom:#4167B0 1px solid;
border-right:#6699CC 1px solid; border-top:#4167B0 1px solid;  
}
.Estilo3 {
	color: #FFFFFF;
	font-weight: bold;
}

    </style>
	

<meta http-equiv="Content-Type" content="text/html; CHARSET=utf-8">



<LINK href= "css/owastyle.css" 
type=text/css rel=stylesheet>
<LINK href="css/owacolors.css" 
type=text/css rel=stylesheet>
<LINK id=cssFont 
href="css/style30.css" type=text/css rel=stylesheet>

<LINK rel=stylesheet type=text/css 
href="css/estilos.css"></LINK>
<LINK 
title=Aqua rel=stylesheet type=text/css 
href="css/theme.css" 
media=all>

<LINK 
rel=stylesheet type=text/css 
href="css/menuBotones.css">
<LINK 
rel=stylesheet type=text/css 
href="css/estiloBoton.css">




<style>
td.bar
{
height:			34px;
padding-left:	10px;
vertical-align: middle;
font-weight:	bold;
font-size:		14px;
color:			#ffffff;
overflow:		hidden;
text-overflow:	ellipsis;
}
table.stageContextBar
{
filter		: progid:DXImageTransform.Microsoft.Gradient(gradientType=1,startColorStr=#6489d4,endColorStr=#466094);
background-image: -moz-linear-gradient(top, #FFFFFF, #C4DDFF);
background-image: -webkit-gradient(linear,left bottom,left top,color-stop(0, #C4DDFF),color-stop(1, #FFFFFF));
border-bottom:1px solid #466094;
}
table.leftContextBar
{
filter		: progid:DXImageTransform.Microsoft.Gradient(gradientType=1,startColorStr=#485673,endColorStr=#63769c);
background-image: -moz-linear-gradient(top, #FFFFFF, #C4DDFF);
background-image: -webkit-gradient(linear,left bottom,left top,color-stop(0, #C4DDFF),color-stop(1, #FFFFFF));
border-bottom:1px solid #485674;
border-right:1px solid #466094;
}
#Dgradiente {
	background-image: -webkit-gradient(linear,left bottom,left top,color-stop(0, #739AD5),color-stop(1, #FFFFFF));
	}

    .style7
    {
    }

    .style8
    {
        width: 76px;
    }
    .style9
    {
        width: 59px;
        font-weight: 700;
    }
    .style10
    {
        width: 59px;
        font-weight: bold;
    }

    .style11
    {
        font-size: 11px;
        color: #000000;
    }

</style>
    
    	  <link rel="stylesheet" href="css/estiloTablas.css" type="text/css"/>
    
    
    <link rel="stylesheet" type="text/css" media="all" href="css/calendario/themeBlue.css" title="Aqua">
	<link rel="alternate stylesheet" type="text/css" media="all" href="css/calendario/theme(1)Blue.css" title="Tiger" disabled="">
	
	<script type="text/javascript" src="js/calendario/calendar.js"></script>
	<script type="text/javascript" src="js/calendario/calendar-en.js"></script>
	<script type="text/javascript" src="js/deluxe/dpopupwindow.js"></script>
	<script type="text/javascript" src="js/deluxe/deluxe-popup-window.js"></script>

	<script type="text/javascript">
		var oldLink = null;
		// code to change the active stylesheet
		function setActiveStyleSheet(link, title) {
		  var i, a, main;
		  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
			if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {
			  a.disabled = true;
			  if(a.getAttribute("title") == title) a.disabled = false;
			}
		  }
		  if (oldLink) oldLink.style.fontWeight = 'normal';
		  oldLink = link;
		  link.style.fontWeight = 'bold';
		  return false;
	}

			// This function gets called when the end-user clicks on some date.
			function selected(cal, date) {
			  cal.sel.value = date; // just update the date in the input field.
			  if (cal.dateClicked && (cal.sel.id == "sel1" || cal.sel.id == "sel3"))
				// if we add this call we close the calendar on single-click.
				// just to exemplify both cases, we are using this only for the 1st
				// and the 3rd field, while 2nd and 4th will still require double-click.
				cal.callCloseHandler();
			}

			// And this gets called when the end-user clicks on the _selected_ date,
			// or clicks on the "Close" button.  It just hides the calendar without
			// destroying it.
			function closeHandler(cal) {
			  cal.hide();                        // hide the calendar
			//  cal.destroy();
			  _dynarch_popupCalendar = null;
			}

			// This function shows the calendar under the element having the given id.
			// It takes care of catching "mousedown" signals on document and hiding the
			// calendar if the click was outside.
			function showCalendar(id, idImage, format, showsTime, showsOtherMonths) {
			  var el = document.getElementById(id);
			  var idIma = document.getElementById(idImage);

			 //alert(document.getElementById(id));
			  
			 /* alert(el.nextSibling);*/
			  
			  //alert(e1);
			  
			  if (_dynarch_popupCalendar != null) {
				// we already have some calendar created
				_dynarch_popupCalendar.hide();                 // so we hide it first.
			  } else {
				// first-time call, create the calendar.
				var cal = new Calendar(1, null, selected, closeHandler);
				// uncomment the following line to hide the week numbers
				// cal.weekNumbers = false;
				if (typeof showsTime == "string") {
				  cal.showsTime = true;
				  cal.time24 = (showsTime == "24");
				}
				if (showsOtherMonths) {
				  cal.showsOtherMonths = true;
				}
				_dynarch_popupCalendar = cal;                  // remember it in the global var
				cal.setRange(1900, 2070);        // min/max year allowed.
				cal.create();
			  }
			  _dynarch_popupCalendar.setDateFormat(format);    // set the specified date format
			  
			 // alert(el);
			  
			  _dynarch_popupCalendar.parseDate(el.value);      // try to parse the text in field
			  _dynarch_popupCalendar.sel = el;                 // inform it what input field we use

			  // the reference element that we pass to showAtElement is the button that
			  // triggers the calendar.  In this example we align the calendar bottom-right
			  // to the button.
			  _dynarch_popupCalendar.showAtElement(idIma, "Br");//(el.nextSibling, "Br");        // show the calendar

			  return false;
			}

			var MINUTE = 60 * 1000;
			var HOUR = 60 * MINUTE;
			var DAY = 24 * HOUR;
			var WEEK = 7 * DAY;

			// If this handler returns true then the "date" given as
			// parameter will be disabled.  In this example we enable
			// only days within a range of 10 days from the current
			// date.
			// You can use the functions date.getFullYear() -- returns the year
			// as 4 digit number, date.getMonth() -- returns the month as 0..11,
			// and date.getDate() -- returns the date of the month as 1..31, to
			// make heavy calculations here.  However, beware that this function
			// should be very fast, as it is called for each day in a month when
			// the calendar is (re)constructed.
			function isDisabled(date) {
			  var today = new Date();
			  return (Math.abs(date.getTime() - today.getTime()) / DAY) > 10;
			}

			function flatSelected(cal, date) {
			  var el = document.getElementById("preview");
			  el.innerHTML = date;
			}

			function showFlatCalendar() {
			  var parent = document.getElementById("display");

			  // construct a calendar giving only the "selected" handler.
			  var cal = new Calendar(0, null, flatSelected);



			  // hide week numbers
			  cal.weekNumbers = false;

			  // We want some dates to be disabled; see function isDisabled above
			  cal.setDisabledHandler(isDisabled);
			  cal.setDateFormat("%A, %B %e");

			  // this call must be the last as it might use data initialized above; if
			  // we specify a parent, as opposite to the "showCalendar" function above,
			  // then we create a flat calendar -- not popup.  Hidden, though, but...
			  cal.create(parent);

			  // ... we can show it here.
			  cal.show();
			}
			</script>
			
			<script  type="text/javascript">

var myArrayGrids;
var basePath = '';

function consultaContra()
{
   
    /*var radioA = '';
    var estado = document.getElementById('dpEstado').options[document.getElementById('dpEstado').selectedIndex].value;
    var departamento = document.getElementById('DropDownList1').options[document.getElementById('DropDownList1').selectedIndex].value;
  
    if(document.getElementById('RadioButtonList1_0').checked == true)
      radioA = document.getElementById('RadioButtonList1_0').value;
    else if(document.getElementById('RadioButtonList1_1').checked == true)
      radioA = document.getElementById('RadioButtonList1_1').value;
    else
      radioA = 3;*/
    
    var fondos = document.getElementById('dpEstado').options[document.getElementById('dpEstado').selectedIndex].value;
    var p_tipo_contrato = document.getElementById('DropDownList1').options[document.getElementById('DropDownList1').selectedIndex].value;
    
   //http://191.9.200.90:8082/Intranet/SrvContratosFormulario?p_administrador=3999&p_contratista=&p_clase=&p_fondos=&p_tipo_contrato=&p_codigo_contrato=
    window.open("http://191.9.200.90:8082/Intranet/SrvContratosFormulario?p_administrador="+document.getElementById('txtAdministrador').value+"&p_contratista="+document.getElementById('txtContratista').value+"&p_clase=&p_fondos="+fondos+"&p_tipo_contrato="+p_tipo_contrato+"&p_codigo_contrato="+document.getElementById('txtCodigoContrato').value, '_webReporte', 'width=1190px,height=500px, status=1,scrollbars=1');
}

function limpia()
{
   document.getElementById('txtCodigoContrato').value = '';
   document.getElementById('txtContratista').value = '';
   document.getElementById('txtAdministrador').value = '';   
}


 function GetXmlHttpObject()
		{
		  var xmlHttp=null;
		  try
		  {
			xmlHttp=new XMLHttpRequest();
		  }
		  catch(e)
		  {
			try
			{
			  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
			}
			catch(e)
			{
			  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
			  }
		  }
		  return xmlHttp;
		}
		
		var campo1 = '';
		var nomCampo1 = '';
		var campo2 = '';
		var nomCampo2 = '';
		
		
		 var obj;
              function getXMLHTTPRequest() 
              {
                 var xRequest=null;
                if (window.XMLHttpRequest) {
                xRequest=new XMLHttpRequest();
                }else if (typeof ActiveXObject != "undefined"){
                  xRequest=new ActiveXObject("Microsoft.XMLHTTP");
                }
                  return xRequest;
                }
            function obtieneListaValores(campo1, campo2, campo3)
            {
                obj=getXMLHTTPRequest();
                if(obj!=null)
                {
                    obj.onreadystatechange = ProcessResponse;
                    obj.open("GET", "Ajax1/ProcessedPage.aspx?campo1="+campo1+"&campo2="+campo2+"&campo3="+campo3,  true);
                    obj.send(null);         
                }
                return false;
            }

            function ProcessResponse()
            {
                var basePath = "";
                
                if(obj.readyState == 4)
                {
                    if(obj.status == 200)
                    {
                        var retval=obj.responseText;  
                        
                        window.open(basePath+'general/encontrarDatos.aspx?exP='+navigator.appName.indexOf("Microsoft")+'&nomCampo1='+nomCampo1+'&nomCampo2='+nomCampo2,'Consulta','width=590px,height=300px');
                        /*if (document.getElementById("Label1")!=null)
                        document.getElementById("Label1").innerHTML=retval;*/
                    }
                    else
                    {
                        alert("Error retrieving data!" );
                    }   
                }
            }

        var dia = '';
        var mes = '';
        var anio = '';

		function obtieneFecha(fechaT)
		{
            var longitud = fechaT.length;
            var conta = 0;
            dia = '';
            mes = '';
            anio = '';
            
                 for(var a=0; a<longitud; a++)
		         {
			        letra = fechaT.substr(a,1);
        			
			        if((letra=='-')||(letra==' '))
			        {
			            conta = conta + 1;
			        }
			        else
			        {
			            if(conta==2)
			            {
			                dia = dia + letra;
			            }
			            else if (conta==1)
			            {
			                mes = mes + letra;
        			        
			            }else if (conta==0)
			            {
			                anio = anio + letra;
			            }
        			    
			        }
		         }
        	
        	if (conta > 4)	
        	{
		         if(dia.length<2)
		         {
		            dia = '0'+dia;
		         }
		         if(mes.length<2)
		         {
		            mes = '0'+mes;
		         }
		         if(anio.length<3)
		         {
		            anio = '20'+anio;
		         }
		     }   
		}
        var lstInicia = '';
        var txtFechaIni = '';
        var txtFechaAnti = '';
        var txtFechaSuscrip = '';
		
		function seleccionaTipoPlazo(valor)
		{
		    lstInicia = document.getElementById('lstFechaInicio').value;
		    txtFechaIni = document.getElementById('txtInciFecha').value;
		    txtFechaAnti = document.getElementById('txtFechaAnticipo').value;
		    txtFechaSuscrip = document.getElementById('txtFechaSuscripcion').value;
		    
		    
		    obtieneFecha(txtFechaIni);		    
		    txtFechaIni = dia + "/" + mes + "/" + anio;
		    
		    obtieneFecha(txtFechaAnti);		    
		    txtFechaAnti = dia + "/" + mes + "/" + anio;
		    
		    obtieneFecha(txtFechaSuscrip);		    
		    txtFechaSuscrip = dia + "/" + mes + "/" + anio;
		    
		    //obtieneFechaCulmina(lstInicia,txtFechaIni,txtFechaAnti,txtFechaSuscrip);
		}
		
		var hdTipoConsultaJa = '';
		var datoCodContra = '0';
		
		function abrirPopup(c_campo1, c_campo2, valor)
		{
            
           
		  campo1 = document.getElementById(c_campo1).value;
		  campo2 = document.getElementById(c_campo2).value;
		 
		  nomCampo1 = c_campo1;		  
		  nomCampo2 = c_campo2;
		  
		  var longiBusc = 0;
		  var longiBusc1 = 0;
		  
		  hdTipoConsultaJa = '';
		  
		  if(valor==1)
		  {
		    var dato = document.getElementById(c_campo1).value;  
		    longiBusc = dato.length;

		    var dato1 = document.getElementById(c_campo2).value;  
		    longiBusc1 = dato1.length;

		    
		    if (longiBusc < 3)
		      if(longiBusc1<4)
		      {
		        alert('Ingrese 3 Digitos de la Cedula del Contratista o el Nombre del Contratista');
		        return false;
		      }
		        
		    obtieneListaValores(campo1, campo2, 'consultaContratista');
			
		  }else if(valor==3)
		  {
		    obtieneListaValores(campo1, campo2, 'consultaFiscalizador');
		    
		  }else if(valor==2)
		  {
		    obtieneListaValores(campo1, campo2, 'consultaAdministrador');
		    
		  }else if(valor==4)
		  {
		  obtieneListaValores(campo1, campo2, 'consultaGerencia');
			
		  }else if(valor==5)
		  {
		     hdTipoConsultaJa = document.getElementById('hdTipoConsulta').value;
		     
		     if(hdTipoConsultaJa==1)
		         datoCodContra = '1';  
		     else
		         datoCodContra = '2';  
		         
		     obtieneListaValores(campo1, campo2, 'consultaCodProceso');
		  }
		}
        
        var obj;
              function getXMLHTTPRequest() 
              {
                 var xRequest=null;
                if (window.XMLHttpRequest) {
                xRequest=new XMLHttpRequest();
                }else if (typeof ActiveXObject != "undefined"){
                  xRequest=new ActiveXObject("Microsoft.XMLHTTP");
                }
                  return xRequest;
                }
            function obtieneListaValores(campo1, campo2, campo3)
            {
                obj=getXMLHTTPRequest();
                if(obj!=null)
                {
                    obj.onreadystatechange = ProcessResponse;
                    obj.open("GET", "Srvlets/ProcessedPage.aspx?campo1="+campo1+"&campo2="+campo2+"&campo3="+campo3+"&campo4="+hdTipoConsultaJa,  true);
                    obj.send(null);         
                }
                return false;
            }

            function ProcessResponse()
            {
                var basePath = "";
                
                if(obj.readyState == 4)
                {
                    if(obj.status == 200)
                    {
                        var retval=obj.responseText;  
                        
                        window.open(basePath+'General/encontrarDatos.aspx?exP='+navigator.appName.indexOf("Microsoft")+'&nomCampo1='+nomCampo1+'&nomCampo2='+nomCampo2+'&conServ='+datoCodContra,'Consulta','width=590px,height=300px');

                    }
                    else
                    {
                        alert("Error retrieving data!" );
                    }   
                }
            }
            
           </script>
  </head>
</head>
<body bgcolor="#D6E8FF" class="clase_principal">

 <form name="frmIntranet" id="frmIntranet" runat="server">	
		 <input type="hidden" id="txtTramite" />
        <div id="msjError" style="display:none;color:red;" align="center" ></div>
				    
			  

<table bgcolor="#EAF3FF"  
                       style=" width: 100%; height:100%; 
                        	  font-size: 11px; font-family: Tahoma; border-right: #b0c2d0 1px solid;
            				  border-top: #b0c2d0 1px solid; border-left: #b0c2d0 1px solid; border-bottom:#b0c2d0 1px solid; " id="idToolbar">
                  <tr style="height: 25px; font-weight: bold; background-color:White">
                    <td height="19" colspan="4" class="style1"
                        style="padding-right: 2px; padding-left: 2px; text-align: left; border-bottom: #6699cc thin solid;">
					    REPORTE DE CONTRATO</td>
                  </tr>
                  <tr style="height: 10px;">
                    <td height="17">&nbsp;</td>
                  </tr>                  
				  <tr style="height: 100%; width:100%">
                    <td colspan="2"
                        nowrap="nowrap" style="padding-right: 2px; padding-left: 5px; height: 30px;">
						<table style="border: 1px solid #b0c2d0; height: 100%; width: 969px;">
						                      <tr>
                        <td width="168"><strong><span class="style11">Codigo de Contrato:</span></strong></td>
                        <td class="style7">
                        		<asp:TextBox ID="txtCodigoContrato" CssClass="cajaTexto" MaxLength="30" 
                                    Width="210px" runat="server"></asp:TextBox>			     
                             
                       </td>
                        <td>&nbsp;</td>
                        <td>
                             <!--<input type="hidden" id = "txtDescContra" name = "txtDescContra" value = "" />-->
                                                  &nbsp;</td>
                        <td class="style10">Fondos:</td>
                        <td>
                            <asp:DropDownList ID="dpEstado" runat="server" DataSourceID="SqlDataSource1" 
                                DataTextField="CATALOGO_DESCRIPCION" DataValueField="CATALOGO_CODIGO" 
                                Width="180px" CssClass="cajaTexto">
                            </asp:DropDownList>
                                                      <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                                ConnectionString="<%$ ConnectionStrings:ConnectionString3 %>" 
                                ProviderName="<%$ ConnectionStrings:ConnectionString3.ProviderName %>" 
                                SelectCommand="select '' catalogo_codigo, 'TODOS' catalogo_descripcion from dual
union
select catalogo_codigo, catalogo_descripcion from web_catalogo where catalogo_nombre = 'TIPFONDOS'">
                            </asp:SqlDataSource>
                                                      </td>
						<td rowspan="11" class="style8" style="background-color:White">
                                                      <br />
                                                      <!--<img src="images/Search-icon-big.gif"
                           alt="Consulta de Contratos" width="50" height="50"
                           style="cursor:pointer;" title="Consulta de Contratos"
                           onclick="conContratos();"/>-->
                                                      
                                                       <TABLE id=toolbarbotones border=0 cellSpacing=0 cellPadding=0>
              <TBODY>
              <TR vAlign=center align=middle>
                <TD>
                <A class=toolbarbotones onclick="" 
                  href="#">
                    <asp:ImageButton ID="btnBuscar" runat="server" OnClientClick="consultaContra(); return false;" ImageUrl="images/search_f2.png" />                  
                  <BR>Buscar</A> </TD>
                <TD>&nbsp;</TD>
                <TD><A class=toolbarbotones onclick=""
                  href="#">
                  <asp:ImageButton ID="btnLimpiar" runat="server"  OnClientClick="limpia(); return false;" ImageUrl="images/blanks.gif" />                  
                  <BR>Limpiar</A> </TD>
                </TR></TBODY></TABLE>
                                                      </td>
                      </tr>
                      <tr>
                        <td>
                            <b>Tipo de Contrato:</b></td>
                        <td>
                            <asp:DropDownList ID="DropDownList1" runat="server" CssClass="cajaTexto" 
                                DataSourceID="SqlDataSource2" DataTextField="CATALOGO_DESCRIPCION" 
                                DataValueField="CATALOGO_CODIGO" Width="169px">
                            </asp:DropDownList>
                            <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                                ConnectionString="<%$ ConnectionStrings:ConnectionString3 %>" 
                                ProviderName="<%$ ConnectionStrings:ConnectionString3.ProviderName %>" SelectCommand="select '' catalogo_codigo, 'TODOS' catalogo_descripcion from dual
union
select catalogo_codigo, catalogo_descripcion from web_catalogo where catalogo_nombre = 'TIPCONTR'">
                            </asp:SqlDataSource>
                          </td>
                        <td>
                        
                           
                        
                                            
                                                      &nbsp;</td>						
                        <td class="style9">
                        
                            &nbsp;</td>						
                        <td>
                        
                                                  
                                                      </td>						
                      </tr>
					  
                     
                      <tr>
                        <td><b>Contratista:</b></td>
                        <td class="style7" colspan="3">
                        
                        <table cellpadding= "0" cellspacing= "0" >
                        
                         <tr>
                         
                         <td>
                        
                            <asp:TextBox ID="txtContratista" runat="server" CssClass="cajaTexto" 
                               Width="75px" MaxLength="14" ></asp:TextBox>
                           </td>
                           <td>
                              <asp:TextBox ID="txtDescContra" CssClass="cajaTexto" Width="200px" 
                                MaxLength="40" runat="server" ></asp:TextBox>
                             </td>
                           <td>
                <TABLE id=toolbarbotones1 border=0 cellSpacing=0 cellPadding=0>
              <TBODY>
              <TR vAlign=center align=middle>
                <TD>
                                <A class=toolbarbotones onclick="" 
                  href="#">
                                <asp:ImageButton runat="server" CausesValidation="False" OnClientClick="abrirPopup('txtContratista','txtDescContra',1);return false;"
                                    Height="16px" Width="16px" ID="ImageButton4" ImageUrl="images/ico_18_126.gif">
                                </asp:ImageButton>
                                </A> </TD>
                            </TR>
                           </TBODY>
                          </TABLE>
                          </td>
                         </tr>
                       </table>
                          
                          
                           
                
                                             </td>
            
                        <td class="style10">
                        
                            &nbsp;</td>						
                        <td>
                        
                           
                        
                                            
                                                      &nbsp;</td>						
                      </tr>
					  
                      <tr>
                        <td><strong><span class="style6">Administrador:</span></strong></td>
                        <td class="style7" colspan="3">
                        <table cellpadding= "0" cellspacing= "0" >
                        
                         <tr>
                         
                         <td>
                           
                        
                                            
                            <asp:TextBox ID="txtAdministrador" runat="server" CssClass="cajaTexto" 
                                Width="75px"></asp:TextBox>
                               </td>
                           <td>
                      <asp:TextBox ID="DestxtAdministrador" CssClass="cajaTexto" Width="200px" 
                                MaxLength="40" runat="server" ></asp:TextBox>
                            </td>
                            <td>
                            <TABLE id=toolbarbotones2 border=0 cellSpacing=0 cellPadding=0>
              <TBODY>
              <TR vAlign=center align=middle>
                <TD>
                             <A class=toolbarbotones onclick="" 
                  href="#">
                             <asp:ImageButton ID="ImageButton5" runat="server" CausesValidation="False" Height="16px"
                                    ImageUrl="images/ico_18_126.gif" OnClientClick="abrirPopup('txtAdministrador','DestxtAdministrador',2);return false;"
                                    Width="16px" />
                                    </A>
                                  </td>
                                </TR>
                             </TBODY>
                           </TABLE>
                           
                           </td>
                        </table>
                                    
                        </td>            
                        <td class="style10">
                        
                            &nbsp;</td>						
                        <td>
                        
                            &nbsp;</td>						
                      </tr>
					  
                    </table></td>
                  </tr>
				   <tr style="height: 2px;">
                    <td height="19" colspan="4"
                        style="padding-right: 2px; padding-left: 2px; text-align: left; border-bottom: #6699cc thin solid;"></td>
                  </tr> 
				   
				  
  				  
          </table>		
	   		    
				
         </form>
		 

		 
 </body>
</html>